﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserLogin.aspx.cs" Inherits="BIExtAuth.Web.UserLogin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=ConfigurationManager.AppSettings["WebTitle"] %></title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/UserLogin.css" rel="stylesheet" />
    <script src="js/Login/jquery.js" type="text/javascript"></script>
    <script src="js/Login/cloud.js" type="text/javascript"></script>
    <script src="js/UserLogin.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
            $(window).resize(function () {
                $('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2 });
            })
        });
        function myLoginCheck() {
            var ret1 = checkInfo("txtUserID", "lblUserMsg", "txtPwd", "lblPwdMsg");
            return ret1;
        }

        function clearAll() {
            var arr = new Array();
            arr[0] = "txtUserID";
            arr[1] = "lblUserMsg";
            arr[2] = "txtPwd";
            arr[3] = "lblPwdMsg";
            arr[4] = "<%=lblMsg.ClientID %>"
            setAll(arr, "txtUserID");
        }
    </script>
</head>
<body style="background-color: #1c77ac; background-image: url(images/Login/light.png); background-repeat: no-repeat; background-position: center top; overflow: hidden;">
    <div id="mainBody">
        <div id="cloud1" class="cloud"></div>
        <div id="cloud2" class="cloud"></div>
    </div>
    <div class="loginbody">
        <span class="systemlogo"><%=ConfigurationManager.AppSettings["WebTitle"] %></span>
        <form id="formLogin" action="<%=ActionUrl %>" method="post">
            <div class="loginbox">
                <div class="loginform">
                    <div class="loginfodiv">
                        <input id="txtUserID" name="userid" type="text" class="loginuser" value="" onblur="javascript:clearMsg('txtUserID', 'lblUserMsg')" /><label
                            id="lblUserMsg" class="lblTipMsg">请输入用户名</label>
                    </div>
                    <div class="loginfodiv">
                        <input id="txtPwd" name="password" type="password" class="loginpwd" value="" onblur="javascript:clearMsg('txtPwd', 'lblPwdMsg')" /><label
                            id="lblPwdMsg" class="lblTipMsg">请输入密码</label>
                    </div>
                    <div class="loginfodiv">
                        <input id="btnSubmit" name="btnlogin" type="submit" class="loginbtn" value="登录" onclick="javascript: return myLoginCheck();" /><input type="checkbox" checked="checked" id="ckbRemUserName" class="lblBase lblForPwd" /><label for="ckbRemUserName" class="lblBase">记住用户名</label><label><a href="Admin/ChangePwd.aspx" target="_blank" class="lblBase lblForPwd">修改密码</a></label>
                    </div>
                    <div class="loginfodiv">
                        <asp:Label ID="lblMsg" CssClass="lblMsg" runat="server" Text="">错误信息</asp:Label>
                    </div>
                    <div class="suggDiv">
                        <ul>
                            <li><b>浏览建议：</b></li>
                            <li>1、电脑分辨率调整至<strong>1366*768</strong>浏览最佳效果</li>
                            <li>2、使用Google Chrome或者IE9以上版本浏览器</li>
                        </ul>
                    </div>
                </div>
            </div>
        </form>
        <script type="text/javascript">
            window.onload = function () { setFocus("txtUserID", "lblUserMsg", "txtPwd", "lblPwdMsg"); }
            function stop() {
                return false;
            }
            document.oncontextmenu = stop;
        </script>
    </div>
</body>
</html>
